# Copyright (c) 2018 Presto Labs Pte. Ltd.
# Author: jhkim, jaewon

import datetime
from coin.exchange.okex_futures_swap.order_gateway import OkexFuturesSwapOrderGateway
from coin.strategy.mm.subscription import SubscriptionRequest
from coin.strategy.mm.base.order_subsystem import BaseOrderSubsystem


class OkexFuturesSwapOrderSubsystem(BaseOrderSubsystem):
  OrderGateway = OkexFuturesSwapOrderGateway
  OrderSubReq = SubscriptionRequest('Futures', 'Okex', 'v3_swap')
  _delay_notify_order_gateway_reset = datetime.timedelta(seconds=5)
  _use_og_params = True
